package com.wsseieiei.fireballgame.entity.model;// Made with Blockbench 4.2.5
// Exported for Minecraft version 1.17 - 1.18 with Mojang mappings
// Paste this class into your mod and generate all required imports


import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import net.minecraft.client.model.EntityModel;
import net.minecraft.client.model.geom.ModelLayerLocation;
import net.minecraft.client.model.geom.ModelPart;
import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.builders.*;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.Entity;

public class modelsb<T extends Entity> extends EntityModel<T> {
	// This layer location should be baked with EntityRendererProvider.Context in the entity renderer and passed into this model's constructor
	public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation("fireballgame", "sb"), "main");
	private final ModelPart bone;
	private final ModelPart bone2;
	private final ModelPart bone3;

	public modelsb(ModelPart root) {
		this.bone = root.getChild("bone");
		this.bone2 = root.getChild("bone2");
		this.bone3 = root.getChild("bone3");
	}

	public static LayerDefinition createBodyLayer() {
		MeshDefinition meshdefinition = new MeshDefinition();
		PartDefinition partdefinition = meshdefinition.getRoot();

		PartDefinition bone = partdefinition.addOrReplaceChild("bone", CubeListBuilder.create(), PartPose.offsetAndRotation(0.0F, 24.0F, 0.0F, -0.6109F, 0.0F, 0.0F));

		PartDefinition cube_r1 = bone.addOrReplaceChild("cube_r1", CubeListBuilder.create().texOffs(90, 70).addBox(-4.0F, -8.0F, -7.0F, 7.0F, 1.0F, 5.0F, new CubeDeformation(0.0F))
		.texOffs(55, 18).addBox(-3.0F, -5.0F, -4.0F, 5.0F, 1.0F, 3.0F, new CubeDeformation(0.0F))
		.texOffs(98, 39).addBox(-3.0F, -6.0F, -5.0F, 5.0F, 1.0F, 4.0F, new CubeDeformation(0.0F))
		.texOffs(90, 76).addBox(-4.0F, -7.0F, -6.0F, 7.0F, 1.0F, 4.0F, new CubeDeformation(0.0F))
		.texOffs(0, 21).addBox(-2.0F, -4.0F, -3.0F, 3.0F, 1.0F, 3.0F, new CubeDeformation(0.0F))
		.texOffs(0, 0).addBox(-2.0F, -3.0F, -2.0F, 3.0F, 1.0F, 2.0F, new CubeDeformation(0.0F))
		.texOffs(0, 3).addBox(-1.0F, -2.0F, -1.0F, 1.0F, 1.0F, 2.0F, new CubeDeformation(0.0F))
		.texOffs(5, 5).addBox(-1.0F, -1.0F, 0.0F, 1.0F, 1.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 1.9199F, 0.0F, -3.1416F));

		PartDefinition bone2 = partdefinition.addOrReplaceChild("bone2", CubeListBuilder.create(), PartPose.offset(0.0F, 24.0F, 0.0F));

		PartDefinition cube_r2 = bone2.addOrReplaceChild("cube_r2", CubeListBuilder.create().texOffs(26, 75).addBox(4.0F, -12.0F, -5.0F, 1.0F, 6.0F, 12.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, -2.5635F, 0.5139F, -2.8426F));

		PartDefinition cube_r3 = bone2.addOrReplaceChild("cube_r3", CubeListBuilder.create().texOffs(76, 70).addBox(-6.0F, -12.0F, -5.0F, 1.0F, 6.0F, 12.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, -2.5044F, -0.5139F, 2.7837F));

		PartDefinition cube_r4 = bone2.addOrReplaceChild("cube_r4", CubeListBuilder.create().texOffs(0, 85).addBox(2.0F, -18.0F, 0.0F, 3.0F, 8.0F, 8.0F, new CubeDeformation(0.0F))
		.texOffs(76, 88).addBox(-6.0F, -18.0F, 0.0F, 3.0F, 8.0F, 8.0F, new CubeDeformation(0.0F))
		.texOffs(60, 59).addBox(-6.0F, -20.0F, -3.0F, 11.0F, 1.0F, 10.0F, new CubeDeformation(0.0F))
		.texOffs(46, 48).addBox(-6.0F, -19.0F, -3.0F, 11.0F, 1.0F, 10.0F, new CubeDeformation(0.0F))
		.texOffs(50, 70).addBox(-5.0F, -18.0F, -3.0F, 9.0F, 1.0F, 10.0F, new CubeDeformation(0.0F))
		.texOffs(42, 35).addBox(-7.0F, -21.0F, -4.0F, 13.0F, 1.0F, 12.0F, new CubeDeformation(0.0F))
		.texOffs(42, 22).addBox(-7.0F, -22.0F, -4.0F, 13.0F, 1.0F, 12.0F, new CubeDeformation(0.0F))
		.texOffs(0, 34).addBox(-8.0F, -23.0F, -4.0F, 15.0F, 1.0F, 12.0F, new CubeDeformation(0.0F))
		.texOffs(0, 21).addBox(-8.0F, -24.0F, -4.0F, 15.0F, 1.0F, 12.0F, new CubeDeformation(0.0F))
		.texOffs(0, 74).addBox(-5.0F, -17.0F, -3.0F, 9.0F, 1.0F, 10.0F, new CubeDeformation(0.0F))
		.texOffs(80, 18).addBox(-4.0F, -16.0F, -2.0F, 7.0F, 8.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, -3.1416F, 0.0F, 3.1416F));

		PartDefinition bone3 = partdefinition.addOrReplaceChild("bone3", CubeListBuilder.create(), PartPose.offset(0.0F, 24.0F, 0.0F));

		PartDefinition cube_r5 = bone3.addOrReplaceChild("cube_r5", CubeListBuilder.create().texOffs(48, 0).addBox(-5.0F, -26.0F, 7.0F, 4.0F, 4.0F, 4.0F, new CubeDeformation(1.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, -3.1416F, 0.0F, 2.5744F));

		PartDefinition cube_r6 = bone3.addOrReplaceChild("cube_r6", CubeListBuilder.create().texOffs(90, 88).addBox(-5.0F, -26.0F, 7.0F, 4.0F, 4.0F, 4.0F, new CubeDeformation(1.0F))
		.texOffs(83, 39).addBox(-2.0F, -28.0F, -3.0F, 3.0F, 9.0F, 9.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, -3.1416F, 0.0F, -2.7925F));

		PartDefinition cube_r7 = bone3.addOrReplaceChild("cube_r7", CubeListBuilder.create().texOffs(52, 81).addBox(-6.0F, -27.0F, -3.0F, 3.0F, 9.0F, 9.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 3.1416F, 0.0F, 2.618F));

		PartDefinition cube_r8 = bone3.addOrReplaceChild("cube_r8", CubeListBuilder.create().texOffs(40, 75).addBox(3.0F, -37.0F, 19.0F, 1.0F, 1.0F, 7.0F, new CubeDeformation(0.0F))
		.texOffs(67, 81).addBox(-5.0F, -37.0F, 19.0F, 1.0F, 1.0F, 7.0F, new CubeDeformation(0.0F))
		.texOffs(92, 57).addBox(3.0F, -28.0F, 19.0F, 1.0F, 1.0F, 7.0F, new CubeDeformation(0.0F))
		.texOffs(40, 93).addBox(-5.0F, -28.0F, 19.0F, 1.0F, 1.0F, 7.0F, new CubeDeformation(0.0F))
		.texOffs(58, 0).addBox(-5.0F, -36.0F, 10.0F, 9.0F, 8.0F, 10.0F, new CubeDeformation(0.0F))
		.texOffs(16, 47).addBox(-6.0F, -36.0F, 9.0F, 11.0F, 11.0F, 1.0F, new CubeDeformation(0.0F))
		.texOffs(0, 0).addBox(-10.0F, -35.0F, -1.0F, 19.0F, 11.0F, 10.0F, new CubeDeformation(0.0F))
		.texOffs(80, 35).addBox(-9.0F, -27.0F, 8.0F, 17.0F, 3.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, -3.1416F, 0.0F, 3.1416F));

		PartDefinition cube_r9 = bone3.addOrReplaceChild("cube_r9", CubeListBuilder.create().texOffs(22, 93).addBox(-5.9369F, -12.2976F, -12.0F, 8.0F, 13.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(1.0F, -26.0F, 2.0F, 0.0F, 0.0F, -0.4363F));

		PartDefinition cube_r10 = bone3.addOrReplaceChild("cube_r10", CubeListBuilder.create().texOffs(96, 0).addBox(-3.3748F, -11.6905F, -12.0F, 8.0F, 13.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(1.0F, -26.0F, 2.0F, 0.0F, 0.0F, 0.4363F));

		PartDefinition cube_r11 = bone3.addOrReplaceChild("cube_r11", CubeListBuilder.create().texOffs(0, 47).addBox(4.8436F, -11.7591F, -13.0F, 1.0F, 13.0F, 14.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(1.0F, -26.0F, 3.0F, 0.0F, 0.0F, 0.3927F));

		PartDefinition cube_r12 = bone3.addOrReplaceChild("cube_r12", CubeListBuilder.create().texOffs(30, 48).addBox(-6.6913F, -12.5245F, -13.0F, 1.0F, 13.0F, 14.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(1.0F, -26.0F, 3.0F, 0.0F, 0.0F, -0.3927F));

		return LayerDefinition.create(meshdefinition, 128, 128);
	}

	@Override
	public void setupAnim(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {

	}

	@Override
	public void renderToBuffer(PoseStack poseStack, VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {
		bone.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
		bone2.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
		bone3.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
	}
}